package com.cefa.edu.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Created by qimwang on 7/26/17.
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    public Object determineCurrentLookupKey() {
        return DynamicDataSourceHolder.getDataSource();
    }
}